<template>
  <div class="table-page-search-wrapper">
    <a-card>
      <a-descriptions title="用户信息">
        <a-descriptions-item label="尊敬的">
          {{ user.name }}
        </a-descriptions-item>
        <a-descriptions-item label="您是">
          {{ roleName[user.roleId] }}用户
        </a-descriptions-item>
      </a-descriptions>
    </a-card>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data () {
    return {
      roleName: {
        1: '管理员',
        2: '评委',
      },
      user: {
      }
    }
  },
  created() {
    this.user = {
      name: localStorage.getItem('name'),
      roleId: localStorage.getItem('roleId')
    }
  }
}
</script>

<style scoped>

</style>
